﻿using CLROBS;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace DesertKharonIrcPlugin
{
    public class DesertKharonIrcImageSourceFactory : AbstractImageSourceFactory
    {
        public DesertKharonIrcImageSourceFactory()
        {
            ClassName = "DesertKharonIrcImageSource";
            DisplayName = "Desert Kharon Irc";
        }

        public override ImageSource Create(XElement data)
        {
            return new DesertKharonIrcImageSource(data);
        }

        public override bool ShowConfiguration(XElement data)
        {
            ConfigurationDialog dialog = new ConfigurationDialog(data);
            return dialog.ShowDialog() == DialogResult.OK;
        }
    }
}
